/**
 *
 * @author 
 *
 */
module tool {
    export class SetDataTool {
        public constructor() {
        }
        /**删除数组中指定元素*/
        public static removeElement(index: number,array: any[]): any[] {
            if(index >= 0 && index < array.length) {
                for(var i = index;i < array.length;i++) {
                    array[i] = array[i + 1];
                }
                array.length = array.length - 1;
            }
            return array;
        }
    }
}
